WT_DECLARE_WT_MEMBER(1,JavaScriptFunction,"PopupWindow",function(j,k,d,e,f){function l(){var a=0,b=0;if(typeof window.screenLeft==="number"){a=window.screenLeft;b=window.screenTop}else if(typeof window.screenX==="number"){a=window.screenX;b=window.screenY}return{x:a,y:b}}function m(a,b){var g=j.windowSize(),h=l();a=h.x+Math.max(0,Math.floor((g.x-a)/2));b=h.y+Math.max(0,Math.floor((g.y-b)/2));return{x:a,y:b}}var i=m(d,e),c=window.open(k,"","width="+d+",height="+e+",status=yes,location=yes,resizable=yes,scrollbars=yes,left="+
i.x+",top="+i.y);c.opener=window;if(f)var n=setInterval(function(){if(c.closed){clearInterval(n);f(c)}},500)});
